<%@ page language="java" pageEncoding="UTF-8"
	errorPage="../../defaultException.jsp"%>
<%@include file="../../tags.jsp"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>更新新闻信息</title>
<%@include file="../../head.jsp"%>
</head>
<body>
	<form id="fm" method="post" enctype="multipart/form-data">

		<table class="fitem">
			<tr>
				<td><label>行程名称:</label></td>
				<td><input class="easyui-validatebox" name="name"
					value="${trip.name }"
					data-options="validType:'length[0,32]'" /></td>
			</tr>
			<tr>
				<td><label>价格:</label></td>
				<td><input  name="price" value="${trip.price }"
					 class="easyui-validatebox"
					validType="numberbox"/>
				</td>
			</tr>
			<tr>
				<td><label>出发城市:</label></td>
				<td><input name="departureCity" value="${trip.departureCity }"
					 class="easyui-validatebox"></td>
			</tr>
				<tr>
				<td><label>出发日期:</label></td>
				<td><input name="departureDate" 
					 class="easyui-datebox" style="width: 150px"
					value="<fmt:formatDate value='${trip.departureDate}' pattern='yyyy-MM-dd'/>" ></td>
			</tr>
				<tr>
				<td><label>预订行程的url:</label></td>
				<td><input name="bookUrl" value="${trip.bookUrl }"
					 class="easyui-validatebox"></td>
			</tr>
				<tr>
				<td><label>行程天数:</label></td>
				<td><input name="days" value="${trip.days }"
					 class="easyui-validatebox"
					validType="numberbox" data-options="required:true"  ></td>
			</tr>
				<tr>
				<td><label>行程路程:</label></td>
				<td><input name="distance" value="${trip.distance }"
					 class="easyui-validatebox"
					validType="numberbox"></td>
			</tr>
			
			<tr>
				<td><label>状态:</label></td>
				<td>
					<select name="status">
						<option value="1"  <c:if test="${trip.status eq 1 }">selected="selected"</c:if>>编辑状态</option>
						<option value="2" <c:if test="${trip.status eq 2 }">selected="selected"</c:if>>未审核</option>
						<option value="3" <c:if test="${trip.status eq 3 }">selected="selected"</c:if>>已审核</option>
					</select>
					</td>
			</tr>
			<tr>
				<td><label>新图片:</label></td>
				<td><input name="mfile" type="file" size="53"
					class="easyui-validatebox"></td>
			</tr>
			<tr>
				<td><label>行程摘要:</label></td>
				<td><textarea name="summary" id="summary"
						data-options="validType:'length[0,128]'"
						class="easyui-validatebox" style="width: 392px; height: 80px"
						>${trip.summary }</textarea></td>
			</tr>
			<tr>
				<td><label>旧图片:</label>
				</td>
				<td><img src="${image_domain}${trip.image}@!small" width=200px
					height=160px> 
					<input type="hidden" value="${trip.image }" name="image"> 
				</td>
			</tr>
			<input type="hidden" value="${trip.tripId }" name="tripId">
		</table>
	</form>
	<script>
	
		$('#summary').ceditor();
		
	</script>
<style type="text/css">
#fm {
	margin: 0;
	padding: 40px 40px;
}

.ftitle {
	font-size: 14px;
	font-weight: bold;
	padding: 5px 0;
	margin-bottom: 10px;
	border-bottom: 1px solid #ccc;
}

.fitem {
	margin-bottom: 5px;
}

.fitem label {
	display: inline-block;
	width: 90px;
}
</style>
</body>
</html>